layui.use(['form', 'element'], function () {
    var $ = layui.$;
    var element = layui.element;

    element.render('nav', 'test')
    $("a[link]").on('click', function () {
        var thiz = $(this);
        var link = thiz.attr("link");
        $("#content").attr("src", link);
    });
})
